/*
 * dioPacketStructs.h
 *
 * Created: 6/13/2013 2:56:52 AM
 *  Author: Tim
 */ 


#ifndef DIOPACKETSTRUCTS_H_
#define DIOPACKETSTRUCTS_H_

/*********DIO*********/

typedef struct dioPins
{
		uint8_t Header;
	uint8_t msgHeader;
	struct dioPins_parameterByte1
	{
		
		uint8_t	dio8		:1;
		uint8_t	dio9		:1;
		uint8_t	dio10		:1;
		uint8_t	dio11		:1;
		uint8_t	dio12		:1;
		uint8_t	reserved	:1;
		
	}PARAM1;
	
	struct dioPins_parameterByte2
	{
		uint8_t	dio0		:1;
		uint8_t	dio1		:1;
		uint8_t	dio2		:1;
		uint8_t	dio3		:1;
		uint8_t	dio4		:1;
		uint8_t	dio5		:1;
		uint8_t	dio6		:1;
		uint8_t	dio7		:1;
		
	}PARAM2;
	
	uint16_t checkSum;
	
}dioPins_t;

typedef struct DIGITAL_ENABLE
{
	uint8_t Header;
	uint8_t msgHeader;
    uint8_t dataH;
    uint8_t dataL;
	uint16_t checksum;	
}digEnable_t;

#define digitalInEnable_t	digEnable_t

#define digitalOutEnable_t	digEnable_t

#define dioDirSet_t		dioPins_t

#define dioDirClr_t		dioPins_t

#define dioOutSet_t		dioPins_t

#define dioOutClr_t		dioPins_t

#endif /* DIOPACKETSTRUCTS_H_ */
